home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / hypercar / mactool / bombandc.cpt / B&C Encyclopedia / stack.txt < prev   
Encoding:
Text File  |  1991-03-23  |  6.7 KB  |  250 lines

  1. -- stack: in
  2. -- format: 8 (HyperCard 1)
  3. -- flags: 0x5000 (can't delete)
  4. -- protect password hash: 1499280985
  5. -- maximum user level: 4 (authoring)
  6. -- window: Rect(x1=0, y1=0, x2=0, y2=0)
  7. -- screen: Rect(x1=0, y1=0, x2=0, y2=0)
  8. -- card dimensions: w=0 h=0
  9. -- scroll: x=0 y=0
  10. -- background count: 8
  11. -- first background id: 2774
  12. -- card count: 66
  13. -- first card id: 2851
  14. -- list block id: 18169
  15. -- print block id: 5302
  16. -- font table block id: 0
  17. -- style table block id: 0
  18. -- free block count: 0
  19. -- free size: 0 bytes
  20. -- total size: 168992 bytes
  21. -- stack block size: 5632 bytes
  22. -- created by hypercard version: 0x01258000
  23. -- compacted by hypercard version: 0x01258000
  24. -- modified by hypercard version: 0x01258000
  25. -- opened by hypercard version: 0x01258000
  26. -- patterns[0]: 0x0000000000000000
  27. -- patterns[1]: 0x8000000008000000
  28. -- patterns[2]: 0x8800220088002200
  29. -- patterns[3]: 0x8888222288882222
  30. -- patterns[4]: 0x88AA22AA88AA22AA
  31. -- patterns[5]: 0xCCAA33AACCAA33AA
  32. -- patterns[6]: 0xEEAABBAAEEAABBAA
  33. -- patterns[7]: 0xEEBBBBEEEEBBBBEE
  34. -- patterns[8]: 0xFFBBFFEEFFBBFFEE
  35. -- patterns[9]: 0xFFBBFFFFFFBBFFFF
  36. -- patterns[10]: 0x8010022001084004
  37. -- patterns[11]: 0xFFFFFFFFFFFFFFFF
  38. -- patterns[12]: 0x8822882288228822
  39. -- patterns[13]: 0x1122448811224488
  40. -- patterns[14]: 0xC4800C6843023026
  41. -- patterns[15]: 0xB130031BD8C00C8D
  42. -- patterns[16]: 0xAA00AA00AA00AA00
  43. -- patterns[17]: 0x8822552288225522
  44. -- patterns[18]: 0x8855225588552255
  45. -- patterns[19]: 0x77DD77DD77DD77DD
  46. -- patterns[20]: 0x8000000000000000
  47. -- patterns[21]: 0xAA55AA55AA55AA55
  48. -- patterns[22]: 0x038448300C020101
  49. -- patterns[23]: 0x8244394482010101
  50. -- patterns[24]: 0x8814224188412214
  51. -- patterns[25]: 0x8080413E080814E3
  52. -- patterns[26]: 0x22048C7422179810
  53. -- patterns[27]: 0xBE808808EB088880
  54. -- patterns[28]: 0x25C8328964244C92
  55. -- patterns[29]: 0xA29C41BE2AC914EB
  56. -- patterns[30]: 0x40A00000040A0000
  57. -- patterns[31]: 0x8040200002040800
  58. -- patterns[32]: 0xAA00800088008000
  59. -- patterns[33]: 0xFF80808080808080
  60. -- patterns[34]: 0x081C22C180010204
  61. -- patterns[35]: 0xFF808080FF080808
  62. -- patterns[36]: 0xF87422478F172271
  63. -- patterns[37]: 0xBF00BFBFB0B0B0B0
  64. -- patterns[38]: 0xFF7FBE5DA2418000
  65. -- patterns[39]: 0xFAF5FAF5A050A050
  66. -- checksum: 0x0
  67. ----- HyperTalk script -----
  68. ∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞
  69. This script and all scripts contained in
  70. the Bomb and Crash Encyclopedia -- Version 1.0
  71. Copyright ┬⌐ 1991 by MacSpect, Inc.
  72. All Rights Reserved
  73. Commercial Distribution Restricted
  74. ∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞
  75. on SetPassword
  76.   global CorrectPassword
  77.   put 134679852 into CorrectPassword
  78. end SetPassword
  79.  
  80. on arrowKey direction
  81.   if direction is "left" then
  82.     get the short id of prev cd
  83.     if it is 2851 then
  84.       visual effect scroll right
  85.       go cd "Help"
  86.       exit arrowKey
  87.     end if
  88.     if it is 33768 then
  89.       go cd "TitlePage"
  90.       visual effect scroll right
  91.       exit arrowKey
  92.     end if
  93.     if it is 36312 then
  94.       visual effect scroll right
  95.       go cd "TitlePage"
  96.       exit arrowKey
  97.     end if
  98.     if it is 36369 then
  99.       visual effect scroll right
  100.       go cd "TitlePage"
  101.       exit arrowKey
  102.     end if
  103.  
  104.     visual effect scroll right
  105.     go previous cd
  106.  
  107.   else
  108.  
  109.     if direction is "right" then
  110.       get the short id of next cd
  111.       if it is 2851 then
  112.         visual effect scroll left
  113.         go cd "TitlePage"
  114.         exit arrowKey
  115.       end if
  116.       if it is 33768 then
  117.         visual effect scroll left
  118.         go cd "TitlePage"
  119.         exit arrowKey
  120.       end if
  121.       if it is 33612 then
  122.         visual effect scroll left
  123.         go cd "TitlePage"
  124.         exit arrowKey
  125.       end if
  126.       if it is 36369 then
  127.         visual effect scroll left
  128.         go cd "TitlePage"
  129.         exit arrowKey
  130.       end if
  131.  
  132.       visual effect scroll left
  133.       go next cd
  134.     else
  135.       pass arrowKey
  136.     end if
  137.   end if
  138. end arrowKey
  139.  
  140. on closeStack
  141.   hide cd fld "NotRegistered" of cd "TitlePage"
  142.   if the freesize of this stack / 1000 > 2
  143.   then doMenu "Compact Stack"
  144. end closeStack
  145.  
  146. on CodeFind
  147.   ask "Find which error code?"
  148.   if it is empty then exit codefind
  149.   put the name of this cd into CdStart
  150.   push cd
  151.   if it ΓëÑ 1 then
  152.     visual effect dissolve
  153.     go cd "E"& it
  154.   end if
  155.   if it Γëñ -1 then
  156.     visual effect dissolve
  157.     go cd "E_"& abs(it)
  158.   end if
  159.   put the name of this cd into CdEnd
  160.   if CdStart = CdEnd then
  161.     play boing
  162.     answer "Can't find it!" with "OK"
  163.   end if
  164. end Codefind
  165.  
  166. on BcQuit
  167.   answer "Do you really want to quit HyperCard?" with "Yes" or "No"
  168.   if it is "No" then exit BcQuit
  169.   doMenu "Quit Hypercard"
  170. end BcQuit
  171.  
  172. on GoHome
  173.   answer "Go to the Home stack?" with "Home..." or "Cancel"
  174.   if it is "Cancel" then exit GoHome
  175.   visual effect barn door close slow
  176.   go home
  177. end GoHome
  178.  
  179. on Help
  180.   visual effect iris open slow
  181.   go cd "Help"
  182. end Help
  183.  
  184. on HC20
  185.   play boing
  186.   answer "This stack was designed in HyperCard 1.2.5,   it needs to be converted to this version of HyperCard to work properly. You can save a back-up copy of the stack before conversion." with "Save a Copy" or "Convert" or "Quit"
  187.   if it is "Save a Copy" then
  188.     doMenu "Save a Copy..."
  189.     ConvertHC
  190.     exit HC20
  191.   else if it is "Convert" then
  192.     ConvertHC
  193.     exit HC20
  194.   else if it is "Quit" then
  195.     answer "Where do you wish to go?" with "Desktop" or "Home stack" or "Cancel"
  196.     if it is "Desktop" then
  197.       doMenu "Quit HyperCard"
  198.       exit HC20
  199.     else if it is "Home stack" then
  200.       visual effect zoom close
  201.       go home
  202.       exit HC20
  203.     end if
  204.   end if
  205. end HC20
  206.  
  207. on ConvertHC
  208.   answer "Do you really want to convert this stack?" with "Yes" or "No"
  209.   if it is "No" then exit ConvertHC
  210.   put "Converting this stack to HyperCard " & the version
  211.   show msg
  212.   doMenu "Convert Stack..." without dialog
  213.   hide msg
  214. end ConvertHC
  215.  
  216. on Flock
  217.   push cd
  218.   repeat with x=1 to the number of cards
  219.     go cd x
  220.     repeat with y=1 to the number of cd fields
  221.       set lockText of cd fld y to true
  222.     end repeat
  223.   end repeat
  224.   repeat with x=1 to the number of backgrounds
  225.     go first card of bg x
  226.     repeat with y=1 to the number of fields
  227.       set lockText of fld y to true
  228.     end repeat
  229.   end repeat
  230.   pop cd
  231. end Flock
  232.  
  233. on Funlock
  234.   push cd
  235.   repeat with x=1 to the number of cards
  236.     go cd x
  237.     repeat with y=1 to the number of cd fields
  238.       set lockText of cd fld y to false
  239.     end repeat
  240.   end repeat
  241.   repeat with x=1 to the number of backgrounds
  242.     go first cd of bg x
  243.     repeat with y=1 to the number of fields
  244.       set lockText of fld y to false
  245.     end repeat
  246.   end repeat
  247.   pop cd
  248. end Funlock
  249.  
  250.